start(){
  mvn clean package -Dmaven.test.skip=true

  docker-compose down
  sleep 2

  docker rmi northstar-backend
  sleep 2

  echo "清理无用的docker容器"
  echo "y" | sudo docker container prune

  echo "构建新镜像"
  docker build -t northstar-backend .

  echo "执行dokcer-compose"
  docker-compose up -d
}

start